package com.cskaoyan.wordmemorize.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cskaoyan.wordmemorize.dao.entity.EmployeeDO;
import com.cskaoyan.wordmemorize.dto.admin.EmployeeDTO;
import com.cskaoyan.wordmemorize.request.PageRequest;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Set;

public interface EmployeeMapper extends BaseMapper<EmployeeDO> {
    List<EmployeeDO> employeePage2DOs(Page<EmployeeDTO> page);

    //逻辑删除
    int  deleteEmployeeById(Long employeeId);

    void updateLoginInfo(@Param("employeeId")Long employeeId,@Param("ip") String ip, @Param("time")LocalDateTime time);
}
